package com.b2b.aliyun;

import java.io.File;
import java.io.InputStream;

public interface AliOSSClient
{
	// 公有云常量
	public final static String PUBLIC_IMAGES_KEY = "resources/images/";	// 公有云图片路径
	public final static String PUBLIC_FILES_KEY = "resources/files/";		// 公有云文件路径
	// 私有云常量
	public final static String PRIVATE_IMAGES_LICENSE_KEY = "resources/images/license/";		// 营业执照上传路径
	public final static String PRIVATE_IMAGES_CONTRACT_KEY = "resources/images/contract/";		// 合同 图片上传 (获取时候是pdf)
	public final static String PRIVATE_IMAGES_PAYMENT_KEY = "resources/images/payment/";		// 付款凭证 上传路径
	public final static String PRIVATE_IMAGES_DELIVERY_KEY = "resources/images/delivery/";		// 发货凭证 上传路径
	public final static String PRIVATE_IMAGES_INVOICE_KEY = "resources/images/invoice/";		// 发票凭证 上传路径
	
	public String putObject(String prefix, File file);

	public String putObject(String bucketName, String prefix, File file);

	public String putObject(String prefix, InputStream input);

	public String putObject(String bucketName, String prefix, InputStream input);

	public byte[] getObject(String prefix, String key);

	public byte[] getObject(String bucketName, String prefix, String key);
}
